package com.jerkin.serial;

import java.io.IOException;

/**
 * @version V1.0
 * @ClassName: Serializer
 * @Description:
 * @author: huhongzhi
 * @date: 2021/4/17 16:07
 */
public interface ObjectSerializer {

    byte[] serialize(Object object) throws IOException;

    <T> T deserialize(Class<T> clazz, byte[] bytes) throws IOException;
}
